package com.yzc.controller;

import com.yzc.model.entity.log.InventoryLog;
import com.yzc.result.Result;
import com.yzc.service.InventoryLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logs")
public class InventoryLogController {

    @Autowired
    private InventoryLogService service;

    @PostMapping("/InventoryLog")
    public Result<Boolean> InventoryLog(@RequestBody InventoryLog inventoryLog) {
        return Result.success(service.InventoryLog(inventoryLog));
    }
}
